package com.pluten.basicinfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pluten.common.annotation.Excel;
import com.pluten.common.core.domain.BaseEntity;

/**
 * 产品类别对象 cm_product_category
 * 
 * @author wangjun
 * @date 2021-08-24
 */
public class CmProductCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long guid;

    /** 名称 */
    @Excel(name = "名称")
    private String categoryName;

    /** 编码 */
    @Excel(name = "编码")
    private String categoryCode;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long categorySort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Long status;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    public void setGuid(Long guid) 
    {
        this.guid = guid;
    }

    public Long getGuid() 
    {
        return guid;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }
    public void setCategorySort(Long categorySort) 
    {
        this.categorySort = categorySort;
    }

    public Long getCategorySort() 
    {
        return categorySort;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("categoryName", getCategoryName())
            .append("categoryCode", getCategoryCode())
            .append("categorySort", getCategorySort())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
